package packml;

import java.rmi.RemoteException;
import java.util.ArrayList;

public class OEECalculate extends Packmlhandler implements Runnable {

	private int totalBricks;
	private int usedBricks;
	private double OperatingTime=305.0,PlannedProductionTime = 315.0,IdealRunRate=20.0;
	//private ArrayList<Integer> a1 = new ArrayList<Integer>();
	private int a1[];
	private int actualTotalBricks=0,actualUsedBricks=0;
	@Override
	public void run() {
		while(true){
			delay(60000);
		try {
			totalBricks = packmlhandlerOEE.accessBricksEnteredConveyor(true);
			usedBricks = packmlhandlerOEE.accessBricksUsed(true);
			actualTotalBricks += totalBricks;
			actualUsedBricks += usedBricks;
			System.out.println(" actual bricks used " + actualUsedBricks);
			System.out.println(" actual total bricks  " + actualTotalBricks);
			calculate();
			displayData();
		} catch (RemoteException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		}
		
	}
	
	
	public void calculate(){
		
			
		Availability = (OperatingTime/PlannedProductionTime)*100;
		Performance = ((actualTotalBricks/OperatingTime)/IdealRunRate)*100;
		Quality = (actualUsedBricks/actualTotalBricks)*100;
		System.out.println("Quality "+Quality);
		OverallOEE = (Availability * Performance * Quality)*100; 
		System.out.println("Overall OEE "+OverallOEE);
		
	}

	public void displayData(){
		jTextArea6.setText("\tAvailability\n\nWorld Class : 90.00%\n\nMy OEE %   :  " +Availability);
		jTextArea1.setText("\tPerformance\n\nWorld Class : 95.00%\n\nMy OEE %   :  "+Performance);
		 jTextArea2.setText("\tQuality\n\nWorld Class : 99.90%\n\nMy OEE %   :  "+Quality);
		jTextArea8.setText("\tOverall OEE\n\nWorld Class : 85.00%\n\nMy OEE %   :  "+OverallOEE);
		
	}
	
}





















//
//package packml;
//
//import java.awt.Point;
//import java.awt.event.ActionEvent;
//import java.awt.event.ActionListener;
//import java.util.Calendar;
//
//import javax.swing.Timer;
//
//public class PackmlUI extends javax.swing.JFrame {
//	
//	
//    
//    public volatile static java.awt.Canvas canvas1;
//    public volatile static java.awt.Canvas canvas2;
//    public volatile static javax.swing.Box.Filler filler1;
//    public volatile static javax.swing.Box.Filler filler2;
//    public volatile static javax.swing.Box.Filler filler3;
//    public volatile static javax.swing.JButton jButton1;
//    public volatile static javax.swing.JButton jButton2;
//    public volatile static javax.swing.JButton jButton3;
//    public volatile static javax.swing.JButton jButton4;
//    public volatile static javax.swing.JButton jButton5;
//    public volatile static javax.swing.JButton jButton6;
//    public volatile static javax.swing.JButton jButton7;
//    public volatile static javax.swing.JButton jButton8;
//    public volatile static javax.swing.JButton jButton9;
//    public volatile static Timer totalTimerExecute;
//    public volatile static Timer timerIdle;
//    public volatile static Timer timerAborted;
//    public volatile static Timer timerStopped;
//    public volatile static Timer currentTimerExecute;
//    public volatile static javax.swing.JLabel jLabel1;
//    public volatile static javax.swing.JLabel jLabel2;
//    public volatile static javax.swing.JLabel jLabel3;
//    public volatile static javax.swing.JLabel jLabel4;
//    public volatile static javax.swing.JPanel jPanel1;
//    public volatile static javax.swing.JPanel jPanel2;
//    public volatile static javax.swing.JPanel jPanel3;
//    public volatile static javax.swing.JPanel jPanel4;
//    public volatile static javax.swing.JPanel jPanel5;
//    public volatile static javax.swing.JPanel jPanel6;
//    public volatile static javax.swing.JPanel jPanel7;
//    public volatile static javax.swing.JScrollPane jScrollPane3;
//    public volatile static javax.swing.JScrollPane jScrollPane4;
//    public volatile static javax.swing.JScrollPane jScrollPane5;
//    public volatile static javax.swing.JScrollPane jScrollPane6;
//    public volatile static javax.swing.JScrollPane jScrollPane7;
//    public volatile static javax.swing.JTextArea jTextArea3;
//    public volatile static javax.swing.JTextArea jTextArea4;
//    public volatile static javax.swing.JTextArea jTextArea5;
//    public volatile static javax.swing.JTextArea jTextArea6;
//    public volatile static javax.swing.JTextArea jTextArea7;
//    public volatile static javax.swing.JTextField jTextField1;
//    public volatile static javax.swing.JTextField jTextField10;
//    public volatile static javax.swing.JTextField jTextField11;
//    public volatile static javax.swing.JTextField jTextField12;
//    public volatile static javax.swing.JTextField jTextField13;
//    public volatile static javax.swing.JTextField jTextField14;
//    public volatile static javax.swing.JTextField jTextField15;
//    public volatile static javax.swing.JTextField jTextField16;
//    public volatile static javax.swing.JTextField jTextField17;
//    public volatile static javax.swing.JTextField jTextField18;
//    public volatile static javax.swing.JTextField jTextField2;
//    public volatile static javax.swing.JTextField jTextField3;
//    public volatile static javax.swing.JTextField jTextField4;
//    public volatile static javax.swing.JTextField jTextField5;
//    public volatile static javax.swing.JTextField jTextField6;
//    public volatile static javax.swing.JTextField jTextField7;
//    public volatile static javax.swing.JTextField jTextField8;
//    public volatile static javax.swing.JTextField jTextField9;
//	
//	public volatile static int start = 3;
//	public volatile static String state;
//	public volatile static String state1 = null;
//	public  volatile static int unhold = 0;
//	public volatile static int exec = 0;
//	public volatile static int completing = 0;
//	public volatile static int unsuspend = 0;
//	public volatile static int exectimer=0;
//	public  volatile Clock stopClock =  new Clock();
//	public  volatile Clock1 stopClock1 = new Clock1();
//	public volatile  static int resetCurrentTimer=0;
//	public volatile  static int resetTotalTimer=0;
//	public volatile static String brick=null;
//	public volatile static String order;
//	public static volatile int receiveData1;
//	public volatile boolean first = false;
//	public volatile static double Availability,Performance,Quality,OverallOEE;
//	
//	//public static volatile int receiveData;
//
//	//public volatile static boolean suspendPermission;
//
//	public synchronized void delay(int i) {
//			try {
//				wait(i);
//			} catch (InterruptedException e) {
//				e.printStackTrace();
//			}
//		}
//	private static final long serialVersionUID = 1L;
//	public PackmlUI() {
//		    initComponents();
//	
//	}
//	
//	
//	
//	class ConnectButtonListener implements ActionListener{
//
//		public void actionPerformed(ActionEvent arg0) {
//			
//	    	first=true;
//	    	jButton9.setEnabled(false);
//	    	
//			
//		}
//		
//	}
//class ButtonListener  implements ActionListener{
//    	
//    	public void actionPerformed(ActionEvent e) {
//    		
//    		String name = e.getActionCommand();
//    		
// 		
//    		
//    		
//    		if(name=="Stop"){
//    			
//    			
//    			state = "Stopping";
//    			state1 = "Stopping";
//    			
//    		}
//    		
//    		if(name=="Reset"){
//    			
//    			state = "Resetting";
//    			state1 = "Resetting";
//    			
//    		}
//    		
//    		if(name=="Start"){
//    			
//    			if(unhold==1){
//    				
//    				state = "Unholding";
//    			}
//    			
//    			else if(exec==1){
//    				
//    				state="Execute";
//    				}
//    			
//    			else{
//    					state = "Starting";
//    				}
//    			
//    			}
//    		
//    		
//    		
//    		if(name=="Hold"){
//    			
//    			state = "Holding";
//    		}
//    		
//    		if(name=="Clear"){
//    			
//    			state = "Clearing";
//    			
//    		}
//    		
//    		
// 	}
//    	
//    }
//class totalTimerListener implements ActionListener{
//	
//	    public void actionPerformed(ActionEvent e){
//	    	
//				
//				
//	        stopClock.increaseSeconds();
//	        if(resetTotalTimer==1){
//	        	stopClock.resetClock();
//	        	totalTimerExecute.stop();
//	        
//	        	resetTotalTimer=0;
//	        }
//	             
//	           jTextArea5.setText("                      Execute            \n\nCurrent Time   :  "+stopClock1.displayTime()+"\n\nTotal Time        :  "+stopClock.displayTime());
//	        jTextArea5.setEditable(false);
//	    
//	    	
//	    }	
//	 }
//
//
//class currentTimerListener implements ActionListener{
//	
//    public void actionPerformed(ActionEvent e){
//    	
//						
//        stopClock1.increaseSeconds();
//        if(resetCurrentTimer==1){
//        	stopClock1.resetClock();
//        	currentTimerExecute.stop();
//        	resetCurrentTimer=0;
//        }
//       
//        jTextArea5.setText("                      Execute            \n\nCurrent Time   :  "+stopClock1.displayTime()+"\n\nTotal Time        :  "+stopClock.displayTime());
//        jTextArea5.setEditable(false);
//    
//    	
//    }	
// }
//   
//    public void initComponents() {
//    	
//    	 ActionListener butListener = new ButtonListener();
//    	 ActionListener totalListener = new totalTimerListener();
//    	 totalTimerExecute = new Timer(1000,totalListener) ;
//    	
//    	 ActionListener connectButtonListener = new ConnectButtonListener();
//    	 
//      
//    	 ActionListener currentListener = new currentTimerListener();
//    	 currentTimerExecute = new Timer(1000,currentListener) ;
//    	
//
//    	
//         
//         jPanel5 = new javax.swing.JPanel();
//         jPanel6 = new javax.swing.JPanel();
//         jPanel7 = new javax.swing.JPanel();
//         jScrollPane6 = new javax.swing.JScrollPane();
//         jTextArea6 = new javax.swing.JTextArea();
//         jPanel1 = new javax.swing.JPanel();
//         jPanel2 = new javax.swing.JPanel();
//         jTextField1 = new javax.swing.JTextField();
//         jButton1 = new javax.swing.JButton();
//         jButton2 = new javax.swing.JButton();
//         jButton3 = new javax.swing.JButton();
//         jButton4 = new javax.swing.JButton();
//         jButton5 = new javax.swing.JButton();
//         jButton6 = new javax.swing.JButton();
//         jButton7 = new javax.swing.JButton();
//         jButton8 = new javax.swing.JButton();
//         canvas1 = new java.awt.Canvas();
//         jLabel2 = new javax.swing.JLabel();
//         jLabel3 = new javax.swing.JLabel();
//         jLabel4 = new javax.swing.JLabel();
//         jButton9 = new javax.swing.JButton();
//         jPanel3 = new javax.swing.JPanel();
//         jPanel4 = new javax.swing.JPanel();
//         jTextField2 = new javax.swing.JTextField();
//         jTextField3 = new javax.swing.JTextField();
//         filler1 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(32767, 0));
//         filler2 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(32767, 0));
//         filler3 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(32767, 0));
//         jTextField4 = new javax.swing.JTextField();
//         jTextField5 = new javax.swing.JTextField();
//         jTextField6 = new javax.swing.JTextField();
//         jTextField7 = new javax.swing.JTextField();
//         jTextField8 = new javax.swing.JTextField();
//         jTextField9 = new javax.swing.JTextField();
//         jTextField10 = new javax.swing.JTextField();
//         jTextField11 = new javax.swing.JTextField();
//         jTextField12 = new javax.swing.JTextField();
//         jTextField13 = new javax.swing.JTextField();
//         jTextField14 = new javax.swing.JTextField();
//         jTextField15 = new javax.swing.JTextField();
//         jTextField16 = new javax.swing.JTextField();
//         jTextField17 = new javax.swing.JTextField();
//         jTextField18 = new javax.swing.JTextField();
//         canvas2 = new java.awt.Canvas();
//         jLabel1 = new javax.swing.JLabel();
//         jScrollPane3 = new javax.swing.JScrollPane();
//         jTextArea3 = new javax.swing.JTextArea();
//         jScrollPane4 = new javax.swing.JScrollPane();
//         jTextArea4 = new javax.swing.JTextArea();
//         jScrollPane5 = new javax.swing.JScrollPane();
//         jTextArea5 = new javax.swing.JTextArea();
//         jScrollPane7 = new javax.swing.JScrollPane();
//         jTextArea7 = new javax.swing.JTextArea();
//
//         javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
//         jPanel5.setLayout(jPanel5Layout);
//         jPanel5Layout.setHorizontalGroup(
//             jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
//             .addGap(0, 100, Short.MAX_VALUE)
//         );
//         jPanel5Layout.setVerticalGroup(
//             jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
//             .addGap(0, 100, Short.MAX_VALUE)
//         );
//
//         javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
//         jPanel6.setLayout(jPanel6Layout);
//         jPanel6Layout.setHorizontalGroup(
//             jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
//             .addGap(0, 100, Short.MAX_VALUE)
//         );
//         jPanel6Layout.setVerticalGroup(
//             jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
//             .addGap(0, 100, Short.MAX_VALUE)
//         );
//
//         javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
//         jPanel7.setLayout(jPanel7Layout);
//         jPanel7Layout.setHorizontalGroup(
//             jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
//             .addGap(0, 100, Short.MAX_VALUE)
//         );
//         jPanel7Layout.setVerticalGroup(
//             jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
//             .addGap(0, 100, Short.MAX_VALUE)
//         );
//         
//         
//         jButton1.addActionListener(butListener);
//         jButton2.addActionListener(butListener);
//         jButton3.addActionListener(butListener);
//         jButton4.addActionListener(butListener);
//         jButton5.addActionListener(butListener);
//         jButton6.addActionListener(butListener);
//         jButton7.addActionListener(butListener);
//         jButton8.addActionListener(butListener);
//         jButton9.addActionListener(connectButtonListener);
//         
//         jTextArea6.setColumns(20);
//         jTextArea6.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
//         jTextArea6.setRows(5);
//         jTextArea6.setText("Stopped:\n\nCurrent Time : \nTotal Time      :");
//         jScrollPane6.setViewportView(jTextArea6);
//
//         setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
//         setBackground(new java.awt.Color(0, 0, 0));
//         setForeground(new java.awt.Color(0, 0, 0));
//
//         jPanel1.setBackground(new java.awt.Color(0, 0, 0));
//         jPanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 6));
//
//         jPanel2.setBackground(new java.awt.Color(0, 0, 0));
//         jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 3));
//
//         jTextField1.setBackground(new java.awt.Color(51, 255, 51));
//         jTextField1.setText("  PackMl State Machine V3.0");
//         jTextField1.addActionListener(new java.awt.event.ActionListener() {
//             public void actionPerformed(java.awt.event.ActionEvent evt) {
//                 jTextField1ActionPerformed(evt);
//             }
//         });
//
//         jButton1.setText("ON");
//         jButton1.addActionListener(new java.awt.event.ActionListener() {
//             public void actionPerformed(java.awt.event.ActionEvent evt) {
//                 jButton1ActionPerformed(evt);
//             }
//         });
//
//         jButton2.setText("OFF");
//
//         jButton3.setText("Reset");
//
//         jButton4.setText("Start");
//
//         jButton5.setText("Stop");
//
//         jButton6.setText("Hold");
//
//         jButton7.setText("Clear");
//
//         jButton8.setText("Complete");
//
//         jLabel2.setText("jLabel2");
//
//         jLabel3.setText("jLabel3");
//
//         jLabel4.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N
//         jLabel4.setForeground(new java.awt.Color(255, 0, 0));
//         jLabel4.setText("   E-Brake");
//
//         jButton9.setText("Connect");
//
//         javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
//         jPanel2.setLayout(jPanel2Layout);
//         jPanel2Layout.setHorizontalGroup(
//             jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
//             .addGroup(jPanel2Layout.createSequentialGroup()
//                 .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
//                     .addGroup(jPanel2Layout.createSequentialGroup()
//                         .addContainerGap()
//                         .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE))
//                     .addGroup(jPanel2Layout.createSequentialGroup()
//                         .addGap(126, 126, 126)
//                         .addComponent(canvas1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
//                     .addGroup(jPanel2Layout.createSequentialGroup()
//                         .addContainerGap()
//                         .addComponent(jButton7, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE))
//                     .addGroup(jPanel2Layout.createSequentialGroup()
//                         .addContainerGap()
//                         .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE))
//                     .addGroup(jPanel2Layout.createSequentialGroup()
//                         .addContainerGap()
//                         .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE))
//                     .addGroup(jPanel2Layout.createSequentialGroup()
//                         .addContainerGap()
//                         .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
//                             .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel2Layout.createSequentialGroup()
//                                 .addComponent(jLabel2)
//                                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
//                                 .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE))
//                             .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel2Layout.createSequentialGroup()
//                                 .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE)
//                                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
//                                 .addComponent(jButton2))))
//                     .addGroup(jPanel2Layout.createSequentialGroup()
//                         .addContainerGap()
//                         .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE))
//                     .addGroup(jPanel2Layout.createSequentialGroup()
//                         .addContainerGap()
//                         .addComponent(jButton6, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE))
//                     .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE)
//                     .addGroup(jPanel2Layout.createSequentialGroup()
//                         .addContainerGap()
//                         .addComponent(jButton8, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE))
//                     .addGroup(jPanel2Layout.createSequentialGroup()
//                         .addGap(23, 23, 23)
//                         .addComponent(jButton9)))
//                 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
//         );
//         jPanel2Layout.setVerticalGroup(
//             jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
//             .addGroup(jPanel2Layout.createSequentialGroup()
//                 .addContainerGap()
//                 .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE)
//                 .addGap(18, 18, 18)
//                 .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
//                 .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
//                     .addGroup(jPanel2Layout.createSequentialGroup()
//                         .addGap(5, 5, 5)
//                         .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE))
//                     .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
//                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
//                         .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)))
//                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
//                 .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
//                     .addComponent(jLabel2)
//                     .addComponent(jLabel3))
//                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
//                 .addComponent(jButton3)
//                 .addGap(18, 18, 18)
//                 .addComponent(jButton4)
//                 .addGap(18, 18, 18)
//                 .addComponent(jButton5)
//                 .addGap(18, 18, 18)
//                 .addComponent(jButton6)
//                 .addGap(18, 18, 18)
//                 .addComponent(jButton7)
//                 .addGap(18, 18, 18)
//                 .addComponent(jButton8)
//                 .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
//                     .addGroup(jPanel2Layout.createSequentialGroup()
//                         .addGap(43, 43, 43)
//                         .addComponent(canvas1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
//                     .addGroup(jPanel2Layout.createSequentialGroup()
//                         .addGap(18, 18, 18)
//                         .addComponent(jButton9)))
//                 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
//         );
//
//         jPanel3.setBackground(new java.awt.Color(255, 255, 255));
//         jPanel3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));
//         jPanel3.setForeground(new java.awt.Color(255, 255, 255));
//
//         jPanel4.setBackground(new java.awt.Color(51, 204, 255));
//         jPanel4.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 4));
//
//         jTextField2.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
//         jTextField2.setText("      Aborting");
//
//         jTextField3.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
//         jTextField3.setText("    Stopped");
//         jTextField3.addActionListener(new java.awt.event.ActionListener() {
//             public void actionPerformed(java.awt.event.ActionEvent evt) {
//                 jTextField3ActionPerformed(evt);
//             }
//         });
//
//         jTextField4.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
//         jTextField4.setText("      Aborted");
//         jTextField4.addActionListener(new java.awt.event.ActionListener() {
//             public void actionPerformed(java.awt.event.ActionEvent evt) {
//                 jTextField4ActionPerformed(evt);
//             }
//         });
//
//         jTextField5.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
//         jTextField5.setText("      Stopping");
//         jTextField5.addActionListener(new java.awt.event.ActionListener() {
//             public void actionPerformed(java.awt.event.ActionEvent evt) {
//                 jTextField5ActionPerformed(evt);
//             }
//         });
//
//         jTextField6.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
//         jTextField6.setText("     Clearing");
//         jTextField6.addActionListener(new java.awt.event.ActionListener() {
//             public void actionPerformed(java.awt.event.ActionEvent evt) {
//                 jTextField6ActionPerformed(evt);
//             }
//         });
//
//         jTextField7.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
//         jTextField7.setText("    Resetting");
//         jTextField7.addActionListener(new java.awt.event.ActionListener() {
//             public void actionPerformed(java.awt.event.ActionEvent evt) {
//                 jTextField7ActionPerformed(evt);
//             }
//         });
//
//         jTextField8.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
//         jTextField8.setText("         Idle");
//         jTextField8.addActionListener(new java.awt.event.ActionListener() {
//             public void actionPerformed(java.awt.event.ActionEvent evt) {
//                 jTextField8ActionPerformed(evt);
//             }
//         });
//
//         jTextField9.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
//         jTextField9.setText("UnSuspending");
//         jTextField9.addActionListener(new java.awt.event.ActionListener() {
//             public void actionPerformed(java.awt.event.ActionEvent evt) {
//                 jTextField9ActionPerformed(evt);
//             }
//         });
//
//         jTextField10.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
//         jTextField10.setText("     Un-Holding");
//         jTextField10.addActionListener(new java.awt.event.ActionListener() {
//             public void actionPerformed(java.awt.event.ActionEvent evt) {
//                 jTextField10ActionPerformed(evt);
//             }
//         });
//
//         jTextField11.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
//         jTextField11.setText("     Starting");
//         jTextField11.addActionListener(new java.awt.event.ActionListener() {
//             public void actionPerformed(java.awt.event.ActionEvent evt) {
//                 jTextField11ActionPerformed(evt);
//             }
//         });
//
//         jTextField12.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
//         jTextField12.setText("     Execute");
//         jTextField12.addActionListener(new java.awt.event.ActionListener() {
//             public void actionPerformed(java.awt.event.ActionEvent evt) {
//                 jTextField12ActionPerformed(evt);
//             }
//         });
//
//         jTextField13.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
//         jTextField13.setText("        Held");
//         jTextField13.addActionListener(new java.awt.event.ActionListener() {
//             public void actionPerformed(java.awt.event.ActionEvent evt) {
//                 jTextField13ActionPerformed(evt);
//             }
//         });
//
//         jTextField14.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
//         jTextField14.setText("     Holding");
//         jTextField14.addActionListener(new java.awt.event.ActionListener() {
//             public void actionPerformed(java.awt.event.ActionEvent evt) {
//                 jTextField14ActionPerformed(evt);
//             }
//         });
//
//         jTextField15.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
//         jTextField15.setText("     Suspended");
//         jTextField15.addActionListener(new java.awt.event.ActionListener() {
//             public void actionPerformed(java.awt.event.ActionEvent evt) {
//                 jTextField15ActionPerformed(evt);
//             }
//         });
//
//         jTextField16.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
//         jTextField16.setText("    Completing");
//         jTextField16.addActionListener(new java.awt.event.ActionListener() {
//             public void actionPerformed(java.awt.event.ActionEvent evt) {
//                 jTextField16ActionPerformed(evt);
//             }
//         });
//
//         jTextField17.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
//         jTextField17.setText("     Complete");
//         jTextField17.addActionListener(new java.awt.event.ActionListener() {
//             public void actionPerformed(java.awt.event.ActionEvent evt) {
//                 jTextField17ActionPerformed(evt);
//             }
//         });
//
//         jTextField18.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
//         jTextField18.setText("    Suspending");
//         jTextField18.addActionListener(new java.awt.event.ActionListener() {
//             public void actionPerformed(java.awt.event.ActionEvent evt) {
//                 jTextField18ActionPerformed(evt);
//             }
//         });
//
//         javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
//         jPanel4.setLayout(jPanel4Layout);
//         jPanel4Layout.setHorizontalGroup(
//             jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
//             .addGroup(jPanel4Layout.createSequentialGroup()
//                 .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
//                     .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
//                         .addGroup(jPanel4Layout.createSequentialGroup()
//                             .addGap(125, 125, 125)
//                             .addComponent(jTextField8, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))
//                         .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
//                             .addContainerGap()
//                             .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
//                                 .addComponent(jTextField7, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
//                                 .addComponent(jTextField3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))))
//                     .addGroup(jPanel4Layout.createSequentialGroup()
//                         .addGap(177, 177, 177)
//                         .addComponent(canvas2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
//                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
//                 .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
//                     .addGroup(jPanel4Layout.createSequentialGroup()
//                         .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
//                             .addComponent(jTextField9, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
//                             .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))
//                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))
//                     .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
//                         .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
//                             .addComponent(jTextField10, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
//                             .addComponent(jTextField11, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))
//                         .addGap(116, 116, 116)))
//                 .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
//                     .addGroup(jPanel4Layout.createSequentialGroup()
//                         .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
//                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
//                         .addComponent(filler2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
//                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
//                         .addComponent(filler3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
//                         .addGap(18, 18, 18))
//                     .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
//                         .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
//                             .addComponent(jTextField12, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
//                             .addComponent(jTextField13, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
//                             .addComponent(jTextField15, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))
//                         .addGap(102, 102, 102)))
//                 .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
//                     .addGroup(jPanel4Layout.createSequentialGroup()
//                         .addComponent(jTextField14, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
//                         .addGap(119, 119, 119))
//                     .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
//                         .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
//                             .addComponent(jTextField18, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
//                             .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel4Layout.createSequentialGroup()
//                                 .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
//                                 .addGap(28, 28, 28)
//                                 .addComponent(filler1, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE)
//                                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
//                                 .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))
//                             .addGroup(jPanel4Layout.createSequentialGroup()
//                                 .addComponent(jTextField16, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
//                                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
//                                 .addComponent(jTextField17, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)))
//                         .addGap(38, 38, 38))))
//         );
//         jPanel4Layout.setVerticalGroup(
//             jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
//             .addGroup(jPanel4Layout.createSequentialGroup()
//                 .addGap(44, 44, 44)
//                 .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
//                     .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
//                         .addComponent(jTextField13, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)
//                         .addComponent(jTextField10, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)
//                         .addComponent(jTextField14, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE))
//                     .addComponent(canvas2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
//                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 52, Short.MAX_VALUE)
//                 .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
//                     .addComponent(jTextField16, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)
//                     .addComponent(jTextField12, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)
//                     .addComponent(jTextField11, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)
//                     .addComponent(jTextField8, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)
//                     .addComponent(jTextField17, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE))
//                 .addGap(34, 34, 34)
//                 .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
//                     .addGroup(jPanel4Layout.createSequentialGroup()
//                         .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
//                             .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)
//                             .addComponent(jTextField15, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)
//                             .addComponent(jTextField18, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE))
//                         .addGap(41, 41, 41))
//                     .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
//                         .addComponent(jTextField9, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)
//                         .addGap(33, 33, 33)))
//                 .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
//                     .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
//                         .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
//                             .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)
//                             .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)
//                             .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)
//                             .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)
//                             .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE))
//                         .addGap(20, 20, 20))
//                     .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
//                         .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
//                             .addComponent(filler2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
//                             .addComponent(filler1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
//                             .addComponent(filler3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
//                         .addGap(43, 43, 43))))
//         );
//
//         javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
//         jPanel3.setLayout(jPanel3Layout);
//         jPanel3Layout.setHorizontalGroup(
//             jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
//             .addGroup(jPanel3Layout.createSequentialGroup()
//                 .addContainerGap()
//                 .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
//                 .addContainerGap())
//         );
//         jPanel3Layout.setVerticalGroup(
//             jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
//             .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
//                 .addContainerGap()
//                 .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
//                 .addContainerGap())
//         );
//
//         jLabel1.setFont(new java.awt.Font("Arial", 1, 24)); // NOI18N
//         jLabel1.setForeground(new java.awt.Color(255, 255, 51));
//         jLabel1.setText("             Mode");
//
//         jTextArea3.setBackground(jPanel4.getBackground());
//         jTextArea3.setColumns(20);
//         jTextArea3.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
//         jTextArea3.setRows(5);
//         jTextArea3.setText("                     Stopped\n\nCurrent Time   : \n\nTotal Time        :");
//         jScrollPane3.setViewportView(jTextArea3);
//
//         jTextArea4.setBackground(jPanel4.getBackground());
//         jTextArea4.setColumns(20);
//         jTextArea4.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
//         jTextArea4.setRows(5);
//         jTextArea4.setText("                     Aborted\n\nCurrent Time    : \n\nTotal Time         :");
//         jScrollPane4.setViewportView(jTextArea4);
//
//         jTextArea5.setBackground(jPanel4.getBackground());
//         jTextArea5.setColumns(20);
//         jTextArea5.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
//         jTextArea5.setRows(5);
//         jTextArea5.setText("                      Execute            \n\nCurrent Time   : \n\nTotal Time        :");
//         jScrollPane5.setViewportView(jTextArea5);
//
//         jTextArea7.setBackground(jPanel4.getBackground());
//         jTextArea7.setColumns(20);
//         jTextArea7.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
//         jTextArea7.setRows(5);
//         jTextArea7.setText("                          Idle\n\nCurrent Time     : \n\nTotal Time          :");
//         jScrollPane7.setViewportView(jTextArea7);
//
//         javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
//         jPanel1.setLayout(jPanel1Layout);
//         jPanel1Layout.setHorizontalGroup(
//             jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
//             .addGroup(jPanel1Layout.createSequentialGroup()
//                 .addContainerGap()
//                 .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
//                 .addGap(18, 18, 18)
//                 .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
//                     .addGroup(jPanel1Layout.createSequentialGroup()
//                         .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
//                         .addContainerGap())
//                     .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
//                         .addGap(0, 0, Short.MAX_VALUE)
//                         .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 243, javax.swing.GroupLayout.PREFERRED_SIZE)
//                         .addGap(441, 441, 441))
//                     .addGroup(jPanel1Layout.createSequentialGroup()
//                         .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
//                         .addGap(45, 45, 45)
//                         .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
//                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 45, Short.MAX_VALUE)
//                         .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
//                         .addGap(40, 40, 40)
//                         .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
//                         .addContainerGap())))
//         );
//         jPanel1Layout.setVerticalGroup(
//             jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
//             .addGroup(jPanel1Layout.createSequentialGroup()
//                 .addContainerGap()
//                 .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
//                     .addGroup(jPanel1Layout.createSequentialGroup()
//                         .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
//                         .addContainerGap())
//                     .addGroup(jPanel1Layout.createSequentialGroup()
//                         .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)
//                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
//                         .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
//                         .addGap(27, 27, 27)
//                         .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
//                             .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
//                             .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
//                             .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
//                             .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
//                         .addGap(0, 54, Short.MAX_VALUE))))
//         );
//
//         javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
//         getContentPane().setLayout(layout);
//         layout.setHorizontalGroup(
//             layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
//             .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
//                 .addContainerGap(189, Short.MAX_VALUE)
//                 .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
//                 .addGap(42, 42, 42))
//         );
//         layout.setVerticalGroup(
//             layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
//             .addGroup(layout.createSequentialGroup()
//                 .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
//                 .addGap(0, 162, Short.MAX_VALUE))
//         );
//
//         pack();
//     }// </editor-fold>
//
//     private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt) {                                            
//         // TODO add your handling code here:
//     }                                           
//
//     private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                         
//         // TODO add your handling code here:
//     }                                        
//
//     private void jTextField3ActionPerformed(java.awt.event.ActionEvent evt) {                                            
//         // TODO add your handling code here:
//     }                                           
//
//     private void jTextField4ActionPerformed(java.awt.event.ActionEvent evt) {                                            
//         // TODO add your handling code here:
//     }                                           
//
//     private void jTextField5ActionPerformed(java.awt.event.ActionEvent evt) {                                            
//         // TODO add your handling code here:
//     }                                           
//
//     private void jTextField6ActionPerformed(java.awt.event.ActionEvent evt) {                                            
//         // TODO add your handling code here:
//     }                                           
//
//     private void jTextField7ActionPerformed(java.awt.event.ActionEvent evt) {                                            
//         // TODO add your handling code here:
//     }                                           
//
//     private void jTextField8ActionPerformed(java.awt.event.ActionEvent evt) {                                            
//         // TODO add your handling code here:
//     }                                           
//
//     private void jTextField9ActionPerformed(java.awt.event.ActionEvent evt) {                                            
//         // TODO add your handling code here:
//     }                                           
//
//     private void jTextField10ActionPerformed(java.awt.event.ActionEvent evt) {                                             
//         // TODO add your handling code here:
//     }                                            
//
//     private void jTextField11ActionPerformed(java.awt.event.ActionEvent evt) {                                             
//         // TODO add your handling code here:
//     }                                            
//
//     private void jTextField12ActionPerformed(java.awt.event.ActionEvent evt) {                                             
//         // TODO add your handling code here:
//     }                                            
//
//     private void jTextField13ActionPerformed(java.awt.event.ActionEvent evt) {                                             
//         // TODO add your handling code here:
//     }                                            
//
//     private void jTextField14ActionPerformed(java.awt.event.ActionEvent evt) {                                             
//         // TODO add your handling code here:
//     }                                            
//
//     private void jTextField15ActionPerformed(java.awt.event.ActionEvent evt) {                                             
//         // TODO add your handling code here:
//     }                                            
//
//     private void jTextField16ActionPerformed(java.awt.event.ActionEvent evt) {                                             
//         // TODO add your handling code here:
//     }                                            
//
//     private void jTextField17ActionPerformed(java.awt.event.ActionEvent evt) {                                             
//         // TODO add your handling code here:
//     }                                            
//
//     private void jTextField18ActionPerformed(java.awt.event.ActionEvent evt) {                                             
//         // TODO add your handling code here:
//     }                                            
//                                     
//
//    /**
//     * @param args the command line arguments
//     */
//    public static void main(String args[]) {
//       
//    	Thread t = new Thread(new Packmlhandler());
//    	t.start();
//    	
//    	Thread t1 = new Thread(new Simulator());
//    	t1.start();
//    	Thread t2 = new Thread(new CheckSuspendState());
//    	t2.start();
//    	Thread t3 = new Thread(new OEECalculate());
//    	t3.start();
//        try {
//            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
//                if ("Nimbus".equals(info.getName())) {
//                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
//                    break;
//                }
//            }
//        } catch (ClassNotFoundException ex) {
//            java.util.logging.Logger.getLogger(PackmlUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        } catch (InstantiationException ex) {
//            java.util.logging.Logger.getLogger(PackmlUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        } catch (IllegalAccessException ex) {
//            java.util.logging.Logger.getLogger(PackmlUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
//            java.util.logging.Logger.getLogger(PackmlUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        }
//        java.awt.EventQueue.invokeLater(new Runnable() {
//
//            public void run() {
//                new PackmlUI().setVisible(true);
//            }
//        });
//    }
//
//
//}










